<template>
  <div class="template-container">
    <header class="view-header">
      <div class="header-container">
        <div class="header-title">
          <i class="el-icon-s-grid"></i>
          <span>请假管理</span>
        </div>
        <div class="header-form">
          <!--更多-->
          <div class="header-form-item">
            <el-dropdown @command="handleCommand">
              <el-button type="default" :loading="delLoading">
                更多<i class="el-icon-arrow-down el-icon--right"></i>
              </el-button>
              <el-dropdown-menu slot="dropdown">
                <el-dropdown-item icon="el-icon-refresh-right" class="color-refresh-item" command="refresh">刷新
                </el-dropdown-item>
                <el-dropdown-item icon="el-icon-edit" class="color-edit-item" command="edit">编辑</el-dropdown-item>
                <el-dropdown-item icon="el-icon-delete" class="color-del-item" command="del">{{isBatchesDel}}
                </el-dropdown-item>
              </el-dropdown-menu>
            </el-dropdown>
          </div>
          <!--搜索-->
          <div class="header-form-item">
            <el-button plain type="primary" icon="el-icon-search" @click="fetchData">查询</el-button>
          </div>
          <div class="header-form-item">
            <el-button plain type="success" icon="el-icon-notebook-2" @click="open">请假申请</el-button>
          </div>
        </div>
      </div>
    </header>
    <slot name="table"></slot>
  </div>
</template>

<script>
  import listMixin from '@/mixin/listMixin'
  export default {
    name: 'ListPage',
    mixins:[listMixin],
    data() {
      return {}
    },
    created() {

    },
    methods: {
      fetchData(){
        this.$emit('fetch-data')
      }
    }
  }
</script>

<style scoped lang="scss">

</style>
